import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:building-2',
      order: 4,
      title: '固定资产',
    },
    name: 'FixedAssets',
    path: '/fixed-assets',
    children: [
      {
        name: 'AssetCategory',
        path: '/category',
        component: () => import('#/views/fixed-assets/category/index.vue'),
        meta: {
          icon: 'lucide:tags',
          title: '类别及增减方式',
        },
      },
      {
        name: 'AssetManagement',
        path: '/asset-management',
        component: () => import('#/views/fixed-assets/asset-management/index.vue'),
        meta: {
          icon: 'lucide:package',
          title: '资产管理',
        },
      },
      {
        name: 'Depreciation',
        path: '/depreciation',
        component: () => import('#/views/fixed-assets/depreciation/index.vue'),
        meta: {
          icon: 'lucide:trending-down',
          title: '计提折旧',
        },
      },
      {
        name: 'AssetReport',
        path: '/asset-report',
        component: () => import('#/views/fixed-assets/asset-report/index.vue'),
        meta: {
          icon: 'lucide:file-bar-chart',
          title: '资产报表',
        },
      },
    ],
  },
];

export default routes;